package com.adjaisd.scarecrow.testJava;

import com.adjaisd.scarecrow.service.MailService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testMail {

    @Autowired
    MailService mailService;

    @Test
    public void testSendMail() {
        String to = "adjaisd@qq.com";
        String subject = "subject";
        String msg = "msg";
        mailService.sendSimpleMail(to, subject, msg);
    }
}
